package cn.doctorpda.conference.localstore;

import android.content.Context;

import cn.doctorpda.conference.config.AppConfig;
import cn.doctorpda.conference.utils.SPUtils;

/**
 * Created by huangjinlong on 2016/5/12.
 */
public class ClientInfo {
    public static String getClientId(Context context){
        return (String)SPUtils.get(context, AppConfig.CLIENT_ID, "");
    }
    public static String getUserAccessToken(Context context){
        return (String) SPUtils.get(context, AppConfig.ACCESS_TOKEN, "");
    }

    public static void setUserAccessToken(Context context, String mAccessToken){
        SPUtils.put(context, AppConfig.ACCESS_TOKEN, mAccessToken);
    }

    public static void setAccessEmpty(Context context){
        SPUtils.remove(context, AppConfig.ACCESS_TOKEN);
    }

    public static void setClientId(Context context, String clientId){
        SPUtils.put(context, AppConfig.CLIENT_ID, clientId);
    }
}
